.class public Lcom/waiqin365/base/login/LoginSubMenuActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/ImageView;

.field private d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

.field private e:Ljava/util/ArrayList;

.field private f:Lcom/waiqin365/base/login/dk;

.field private g:Landroid/widget/ScrollView;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->e:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/login/LoginSubMenuActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 3

    const/high16 v2, 0x3f000000    # 0.5f

    const v0, 0x7f0c0b80

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c0b85

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->c:Landroid/widget/ImageView;

    const v0, 0x7f0c0b82

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0b86

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    invoke-static {p0, v2}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/GridViewInScrollView;->setHorizontalSpacing(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    invoke-static {p0, v2}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/GridViewInScrollView;->setVerticalSpacing(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/GridViewInScrollView;->setFocusable(Z)V

    const v0, 0x7f0c0b84

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->g:Landroid/widget/ScrollView;

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    new-instance v1, Lcom/waiqin365/base/login/dj;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/login/dj;-><init>(Lcom/waiqin365/base/login/LoginSubMenuActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/GridViewInScrollView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method private b()V
    .locals 4

    invoke-virtual {p0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "menuone"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/g;

    if-eqz v0, :cond_0

    iget-object v1, v0, Lcom/waiqin365/base/login/c/g;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->b:Landroid/widget/TextView;

    iget-object v2, v0, Lcom/waiqin365/base/login/c/g;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz v0, :cond_3

    iget-object v1, v0, Lcom/waiqin365/base/login/c/g;->o:Ljava/util/ArrayList;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->e:Ljava/util/ArrayList;

    iget-object v2, v0, Lcom/waiqin365/base/login/c/g;->o:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, v0, Lcom/waiqin365/base/login/c/g;->o:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    rem-int/lit8 v0, v0, 0x3

    rsub-int/lit8 v0, v0, 0x3

    rem-int/lit8 v1, v0, 0x3

    const/4 v0, 0x0

    :goto_0
    if-ge v0, v1, :cond_1

    new-instance v2, Lcom/waiqin365/base/login/c/g;

    invoke-direct {v2}, Lcom/waiqin365/base/login/c/g;-><init>()V

    const-string/jumbo v3, ""

    iput-object v3, v2, Lcom/waiqin365/base/login/c/g;->b:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    new-instance v0, Lcom/waiqin365/base/login/dk;

    invoke-direct {v0, p0, p0}, Lcom/waiqin365/base/login/dk;-><init>(Lcom/waiqin365/base/login/LoginSubMenuActivity;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->f:Lcom/waiqin365/base/login/dk;

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->f:Lcom/waiqin365/base/login/dk;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/GridViewInScrollView;->setAdapter(Landroid/widget/ListAdapter;)V

    :cond_2
    :goto_1
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/base/login/LoginSubMenuActivity;->d:Lcom/waiqin365/lightapp/view/GridViewInScrollView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/GridViewInScrollView;->setVisibility(I)V

    goto :goto_1
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0b80
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030244

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginSubMenuActivity;->b()V

    return-void
.end method
